package com.ruoyi.wechat.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营地预约对象 c_appointment
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
public class WxAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约id(uuid) */
    private String appointId;

    /** 营地id */
    private String campId;

    /** 用户id */
    private String userId;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal amount;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointTime;

    /** 预约状态（预约时间（0待付款1已支付2已使用3已归还4取消订单） */
    @Excel(name = "预约状态", readConverterExp = "预=约时间（0待付款1已支付2已使用3已归还4取消订单")
    private String state;

    /** 预约二维码 */
    @Excel(name = "预约二维码")
    private String qrcode;

    public void setAppointId(String appointId) 
    {
        this.appointId = appointId;
    }

    public String getAppointId() 
    {
        return appointId;
    }
    public void setCampId(String campId) 
    {
        this.campId = campId;
    }

    public String getCampId() 
    {
        return campId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setAppointTime(Date appointTime) 
    {
        this.appointTime = appointTime;
    }

    public Date getAppointTime() 
    {
        return appointTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setQrcode(String qrcode) 
    {
        this.qrcode = qrcode;
    }

    public String getQrcode() 
    {
        return qrcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appointId", getAppointId())
            .append("campId", getCampId())
            .append("userId", getUserId())
            .append("amount", getAmount())
            .append("appointTime", getAppointTime())
            .append("state", getState())
            .append("qrcode", getQrcode())
            .toString();
    }
}
